﻿<!--==Copyright comes here==-->
    <UserControl x:Class="P2.Cuberry.Modules.Framework.ApplicationConfigurator.ApplicationConfiguratorListView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    >

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/CuberryDataGrid.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>


    <Grid VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" MinHeight="44" />
            
 
        </Grid.RowDefinitions>

        <DataGrid Grid.Row ="0" ItemsSource="{Binding}" 
                     Name="ModulesList"
                     SelectionChanged="ModulesList_SelectionChanged" 
                     MouseDoubleClick="ModulesList_DblClick" 
                     Style="{DynamicResource CuberryDataGridStyle}"
                     VerticalAlignment="Stretch" >                        

                <DataGrid.Columns>
                <DataGridTextColumn Header="{Translate ModuleNameL}" Binding="{Binding Path=ModuleName}" />                 
                <DataGridTextColumn Header="{Translate VersionL}" Binding="{Binding Path=Version}" />                
                <DataGridTextColumn  Header="{Translate LocationL}" Binding="{Binding Path=Location}" IsReadOnly="True" MinWidth="50" Width="*"/>
            </DataGrid.Columns>
        </DataGrid>
    
</Grid>
</UserControl>
